#ifndef SWKNXDATASTRUCT_H
#define SWKNXDATASTRUCT_H

#include "ControlPointStruct.h"
class SWKNXDataStruct
{
public:
    SWKNXDataStruct();

  quint16 groupAddress() const;
    void setGroupAddress(const quint16 &address);

    quint16 fbAddress() const;
      void setFBAddress(const quint16 &address);

    quint16 knxLen() const;
    void setKnxLen (const quint16 &len);

      QByteArray dataList() const;
    void setDataList(const QByteArray &dataList);


    quint64 delayTime() const;
    void setDelayTime(quint64 delayTime);



   QList<ControlPointStruct> controlPointList() const;
    void setControlPointList(const QList<ControlPointStruct> &controlPointList);
    bool operator ==(const SWKNXDataStruct& rhs) const; //重载相等

    bool operator <(const SWKNXDataStruct& rhs) const;

//private:
    quint16 m_groupAddress;
    quint16 m_fbAddress;
   quint16 m_knxLen;
   QByteArray m_dataList;
    QList<ControlPointStruct> m_controlPointList;
    quint64 m_delayTime;
};
Q_DECLARE_METATYPE(SWKNXDataStruct)
#endif // SWKNXDATASTRUCT_H
